package com.wkbb.sports.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ExamineRuleDto {
    /**
     * 编号
     */
    private Long id;

    /**
     * 体检项目ID
     */
    @ApiModelProperty(value ="体检项目ID" )
    private Long examinationId;

    /**
     * 学校ID
     */
    @ApiModelProperty(value ="orgId" )
    private Long orgId;

    /**
     * 年级ID
     */
    @ApiModelProperty(value ="年级ID" )
    private Long gradeId;

    @ApiModelProperty(value = "权重",name = "name")
    private double weight;


    @ApiModelProperty(value ="规则排序(1 升序 2降序)")
    private Byte ruleType;

    /**
     * 年级名称
     */
    @ApiModelProperty(value ="年级名称" )
    private String gradeName;

    /**
     * 性别(0未知1男2女)
     */
    @ApiModelProperty(value ="性别(0未知1男2女)" )
    private Byte sex;

    /**
     * 状态(0:无效 1:有效)
     */
    @ApiModelProperty(value ="状态(0:无效 1:有效)" )
    private Byte status;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    private String updateUser;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    
    @ApiModelProperty(value = "项目规则")
    private List<ExamineRuleItemDto> ruleItemList;
    
    private List<ExamineRulePlusesDto> plusesList;
}
